#$configure terminal
#$pon-onu-mng <%=onuAddress%>
#$no sip-service <%=pots%>
#$no voip_ip
#$voip protocol none
#$voip protocol sip
<% if(mode == 'dhcp'){ -%>
#$voip-ip mode dhcp vlan-profile <%=vlanProfile%> host <%=hostID%>
:|#$ENTER
<%}-%>
<% if(mode == 'pppoe'){ -%>
#$voip-ip mode pppoe username <%=pppoeUsername%> password <%=pppoePassword%> vlan-profile <%=vlanProfile%> host <%=hostID%>
:|#$ENTER
<%}-%>
<% if(mode == 'static'){ -%>
#$voip-ip mode static ip-profile <%=ipProfile%> ip-address <%=ipAddress%> mask <%=mask%> vlan-profile <%=vlanProfile%> host <%=hostID%>
:|#$ENTER
<%}-%>
#$sip-service <%=pots%> profile <%=sipProfile%> userid <%=userID%> username <%=sipUsername%> password <%=sipPassword%>
#$exit